class CreateGoods < ActiveRecord::Migration[7.0]
  def change
    create_table :goods do |t|
      t.string :name
      t.text :description
      t.string :quality
      t.float :price
      t.integer :status, null: false, default: 0
      t.text :comment

      t.belongs_to :user

      t.timestamps
    end
  end
end
